/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package domain;

/**
 *
 * @author Oriol
 */
public class TextStatistics extends Statistics {

	
	private String _mostCommonVerb;
	private int _learntRules;
	private int _learntPairs;
    private static TextStatistics singleton;


	public static TextStatistics getInstance() {
		if(singleton == null) {
			singleton = new TextStatistics();
		}
		return singleton;
	}

	public TextStatistics() {
		_mostCommonVerb = "-";
		_learntRules = 0;
		_learntPairs = 0;
	}

	public int getLearntRules() {
		return _learntRules;
	}

	public String getMostCommonVerb() {
		return _mostCommonVerb;
	}

	public int getLearntPairs() {
		return _learntPairs;
	}
	
	public void setLearntRules(int lr) {
		_learntRules = lr;
	}

	public void setMostCommonVerb(String mcv) {
		_mostCommonVerb = mcv;
	}

	public void setLearntPairs(int lp) {
		_learntPairs = lp;
	}

	public void increaseLearntRules(int lr) {
		_learntRules += lr;
	}

	public void increaseLearntPairs(int lp) {
		_learntPairs += lp;
	}
}
